package com.manager.model;


import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;

import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("all")
@Entity
@Table(name="tb_docker_images")
public class DockerImages extends AllId{

    private Integer imageType;

    private String loginUserName;

    private String loginPassword;

    private String warehouseAddress;

    private String name;

    private String filePath;

    private String tag;

    private Integer pushStatus;

    private String fileSize;

    private String imageId;

    private List<DockerDeploy> dockerDeployList = new ArrayList<>();

    public static String[] config = {"dockerDeployList"};

    @OneToMany(fetch = FetchType.LAZY,orphanRemoval=true,mappedBy = "dockerImages")
    public List<DockerDeploy> getDockerDeployList() {
        return dockerDeployList;
    }

    public void setDockerDeployList(List<DockerDeploy> dockerDeployList) {
        this.dockerDeployList = dockerDeployList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Integer getPushStatus() {
        return pushStatus;
    }

    public void setPushStatus(Integer pushStatus) {
        this.pushStatus = pushStatus;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public Integer getImageType() {
        return imageType;
    }

    public void setImageType(Integer imageType) {
        this.imageType = imageType;
    }

    public String getLoginUserName() {
        return loginUserName;
    }

    public void setLoginUserName(String loginUserName) {
        this.loginUserName = loginUserName;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getWarehouseAddress() {
        return warehouseAddress;
    }

    public void setWarehouseAddress(String warehouseAddress) {
        this.warehouseAddress = warehouseAddress;
    }
}
